package com.bacon.gmall.list.client;

import com.bacon.gmall.common.result.Result;
import com.bacon.gmall.model.list.SearchParam;
import com.bacon.gmall.model.list.SearchResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author： bacon、
 * @version： 1.0
 * @create： 2020-12-29 14:00
 * @description:
 */

@FeignClient(name = "service-list")
public interface ListFeignClient {


    @GetMapping("/api/list/hotScore/{skuId}")
    Result hotScore(@PathVariable Long skuId);

    //开始搜索
    @PostMapping("/api/list/")
    SearchResponseVo list (@RequestBody SearchParam searchParam);
}
